#!/usr/bin/env python
#-*- coding:utf8 -*-
import web
# environment
web.config.env = 'development'
# debug error messages
web.config.debug = True
# database connectio
web.config.database = web.database(dbn='sqlite', db='db/example.sqlite')
# sesiosns configs
web.config.session_parameters['cookie_name']        = '_fox'
web.config.session_parameters['cookie_domain']      = None
web.config.session_parameters['timeout']            = 86400
web.config.session_parameters['ignore_expiry']      = True
web.config.session_parameters['ignore_change_ip']   = True
web.config.session_parameters['secret_key']         = '1234567890asdfghjkl;qwertyuiopzx'
web.config.session_parameters['expired_message']    = '_sess'
